package com.micro.modual.mapper;


import com.micro.core.frame.mapper.BasicsMapper;
import com.micro.modual.entity.SystemUser;
import org.apache.ibatis.annotations.Param;

/**
*  <h1></h1>
 * @author levelcoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:11:09
 */
public interface SystemUserMapper extends BasicsMapper<SystemUser>{


    /**
     * <h2>校验邮箱</h2>
     * @param email 邮箱
     * @return int
     */
    int findEmailExist(@Param("userEmail") String email);

    /**
     * <h2>校验手机号是否存在</h2>
     * @param phone 手机号
     * @return int
     */
    int findPhoneExist(@Param("userPhone") String phone);

    /**
     * <h2>根据用户编号查询用户信息</h2>
     * @param userCode  用户编号
     * @return {@link SystemUser} 系统用户表
     */
    SystemUser findUserInfoByUserCode(@Param("userCode") String userCode);
}
